-
Notifications
You must be signed in to change notification settings - Fork 0
OUT-2986 | Implement fetching Assembly invoice, contracts and forms counts in API #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
priosshrsth
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor optional feedback but otherwise lgtm.
| if (typeof rule === 'string') return rule === pathname | ||
| if (rule.path !== pathname) return false | ||
| const pathMatches = (pattern: string, pathname: string): boolean => { | ||
| const regex = pattern.replace(/:[^/]+/g, '[^/]+').replace(/\//g, '\\/') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be helpful if we add some docs to what this function actually does.
| id: z.string(), | ||
| recipientClientId: z.uuid(), | ||
| recipientCompanyId: z.uuid().nullish(), | ||
| event: z.string(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also parse this event with NotificationEvent from notification-counts/types.ts? With this I think we don't have to do const key = this.eventMap[event as NotificationEvent] in notification-counts.service file right?
Changes
notification-countsfeature to get invoice, contracts & forms counts via list notificationsTesting Criteria